home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The AGA Experience 3
/
AGA Experience Volume 3 (1997)(NFA - SAdENESS)[!].iso
/
software
/
utilities
/
graphics
/
pg_patch2a
/
update-photogenics2
next >
Wrap
Text File
|
1996-07-03
|
5KB
|
221 lines
; Photogenics Autopatcher script. © Almathera 1996. All rights reserved.
; $VER: what_the_fuck?-3am-mix 1.0 (3.07.96)
; Authored & Hacked To Death by thp/©!truS'96
; grungebeat. flexifoils. pain. adrenalin. alcohol. phoenix '96. see y'there.
(set MATHS (database "fpu") )
(set #NOT-OLD-AND-INFERIOR "Installing way-cool new-improved stuff.")
(procedure do_a_patch
(if (exists ("%s%s" PATH FILE))
(
(working ("Patching: %s\n\n" FILE))
(run ( ("c/spatch -o%s%s -p%s%s.diff %s%s" PATH FILE PATCH FILE ORIGINAL FILE)))
)
)
(if (exists ("%s%s" PATH2 FILE))
(
(working ("Patching: %s\n\n" FILE))
(run ( ("c/spatch -o%s%s -p%s%s.diff %s%s" PATH2 FILE PATCH FILE ORIGINAL FILE)))
)
)
)
(message
"\nThis installer will patch the main Photogenics core and libraries,"
" effects, a couple of GIOs, and put in some new online help and"
" rexx scripts. It can spot things you`ve moved from the Data drawers into Storage"
" in your Photogenics setup, and patch them (hence we install everything"
" as default so you won`t need to re-apply this patch as long as you`ve"
" not deleted things from your release 2 install)"
"\n\n(The installer also makes the not unreasonable assumption that Photogenics 2"
" is actually installed on your box ;-)"
)
(if (= MATHS "NOFPU")
(set #FPU-PROMPT
(cat "\n\n\nHmmmmm. The installer reckons you've not got an"
" FPU installed in your machine. Is this correct?")
)
(set #FPU-PROMPT
(cat "\n\n\nArhar. The installer reckons you've got an FPU"
" installed and activated in your machine. Is this"
" correct?")
)
)
(set FPU
(askbool
(prompt #FPU-PROMPT)
(help "\n\nWell, either you've got one, or you haven't...")
(choices "No FPU installed" "FPU installed")
)
)
(askdisk
(prompt "Please insert the Photogenics 2 CD")
(dest "PGSCD")
(help @askdisk-help)
)
; loop for each one...
(set PATH "Photogenics:")
(set PATH2 "Photogenics:data")
(set PATCH "diff/")
(set ORIGINAL "PGSCD:")
(set LOOP-FLAG -1)
(while (< LOOP-FLAG 30 )
(
(set LOOP-FLAG (+ 1 LOOP-FLAG ))
(set FILE
(select LOOP-FLAG
"Photogenics" ; 0
"libs/pgsrexx.library" ; 1
"GIO/ILBM.gio" ; 2
"GIO/Raw.gio"
"GIO/Text.gio"
"Effects/AutoContrast.efx" ; 5
"Effects/Balance.efx"
"Effects/Blur.efx"
"Effects/Edge.efx"
"Effects/Gradient.efx"
"Effects/Greyscale.efx"
"Effects/Histogram.efx"
"Effects/Hue&Saturation.efx"
"Effects/LineStrokes.efx"
"Effects/Median.efx"
"Effects/MixColour.efx"
"Effects/Negative.efx"
"Effects/Noise.efx"
"Effects/Paper.efx"
"Effects/Plasma.efx"
"Effects/Pyramid.efx"
"Effects/RadialBlur.efx"
"Effects/RemoveIsolated.efx"
"Effects/Ripples.efx"
"Effects/Roll.efx"
"Effects/SheetMetal.efx.efx"
"Effects/Tiles.efx.efx"
; stuff that's ffp-sensitive...
"libs/pgs.library" ; 27
"effects/Fractal.efx" ; 28
"Effects/Perspective.efx"
"Effects/Wave.efx"
)
)
; wind thru the list changing paths on the fly
(if (= 1 LOOP-FLAG)
(
(set PATH "Photogenics:data/")
(set PATH2 "Photogenics:Storage/")
(set PATCH "diff/data/")
(set ORIGINAL "PGSCD:data/")
)
)
(if (= 27 LOOP-FLAG)
(
(if (= 1 FPU)
(
(set PATH "Photogenics:Data/")
(set PATH2 "Photogenics:Storage/")
(set PATCH "diff/dataffp/")
(set ORIGINAL "PGSCD:DataFFP/")
)
(
(set PATH "Photogenics:Data/")
(set PATH2 "Photogenics:Storage/")
(set PATCH "diff/data/")
(set ORIGINAL "PGSCD:Data/")
)
)
)
)
(do_a_patch)
)
)
; okay, nuked from orbit, let's do the new stuff...
(if ( = (exists "photogenics:data/help" (noreq) ) 2)
(copyfiles
(prompt #NOT-OLD-AND-INFERIOR)
(help @copyfiles-help)
(source "new/data/help")
(dest "photogenics:data/help")
(confirm)
(all)
)
(message
"\n\nHmmmm. You don`t seem to have the on-line help installed on"
" your system - there`s been some documentation changes and"
" updates in the 2a release that you won`t know about, so"
" you`ll need to install the on-line help and reapply this"
" patch to find out about the new bits."
)
)
(copyfiles
(prompt #NOT-OLD-AND-INFERIOR)
(help @copyfiles-help)
(source "new/data/scripts")
(dest "photogenics:data/scripts")
(confirm)
(all)
)
(copyfiles
(prompt #NOT-OLD-AND-INFERIOR)
(help @copyfiles-help)
(source "new/data/effects")
(dest "photogenics:data/effects")
(confirm)
(all)
(infos)
)
(copyfiles
(prompt #NOT-OLD-AND-INFERIOR)
(help @copyfiles-help)
(source "new/data/lastmin.HTM")
(dest "photogenics:data")
(confirm)
)
(run "Avail >nil: <nil: FLUSH") ; now wash your hands....
(message
"\n\nPhotogenics 2a has now been patched into your existing"
" installation."
)
(exit (quiet))